dojo.provide("com.hayes.rss.Item");

dojo.declare(
  "com.hayes.rss.Item",
  null,
  {
    guid: "",
    title: "",
    author: "",
    description: "",
    link: "",
    pubDate: new Date(),
    
    constructor: function(rssItem) {
      this.guid = rssItem.getElementsByTagName('guid')[0].textContent;
      this.title = rssItem.getElementsByTagName('title')[0].textContent;
      this.author = rssItem.getElementsByTagName('author')[0].textContent;
      this.description = rssItem.getElementsByTagName('description')[0].textContent;
      this.link = rssItem.getElementsByTagName('link')[0].textContent;
      this.pubDate = new Date(rssItem.getElementsByTagName('pubDate')[0].textContent);
    }
    
  }
);